package com.tjbklx1.pattern2.chap32.c03_listener;

public class SHDnsServer extends DnsServer {
	@Override
	protected void sign(Recorder recorder) {
		recorder.setOwner("上海DNS服务器");
	}

	// 定义上海的DNS服务器能处理的级别
	@Override
	protected boolean isLocal(Recorder recorder) {
		return recorder.getDomain().endsWith(".sh.cn");
	}
}